package com.wgy.day39.注解.自定义注解;

import java.lang.annotation.Inherited;

/**
 * Created by pc on 2020/12/16 22:22
 * Description: LearningJava
 */
/*注解的使用格式
* 注解属性的赋值格式:
* */

@Demo02MyAnno(value=12,per=Person.P1,anno2=@MyAnno2,str={"abc","bbb"})
@MyAnno2
public class Worker {
    @MyAnno2
    public String name="aaa";

    @MyAnno2
    public void work(){

    }
}
